package com.chushouya.order.dto.admin.paymentlog;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 支付日志新增DTO
 */
@ApiModel("支付日志新增信息")
@Data
public class PaymentLogSaveDTO {

    @ApiModelProperty(value = "订单ID", required = true)
    @NotNull(message = "订单ID不能为空")
    private Long orderId;

    @ApiModelProperty(value = "订单编号", required = true)
    @NotBlank(message = "订单编号不能为空")
    private String orderNo;

    @ApiModelProperty("商户转账单号")
    private String outBizNo;

    @ApiModelProperty("支付宝转账单号")
    private String tradeNo;

    @ApiModelProperty(value = "支付金额", required = true)
    @NotNull(message = "支付金额不能为空")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "支付渠道", required = true)
    @NotBlank(message = "支付渠道不能为空")
    private String payChannel;

    @ApiModelProperty(value = "支付类型", required = true)
    @NotBlank(message = "支付类型不能为空")
    private String payType;

    @ApiModelProperty("支付状态：0=待支付，1=支付成功，2=支付失败")
    private Boolean status;

    @ApiModelProperty("支付账号ID")
    private String openId;

    @ApiModelProperty("支付响应数据")
    private String responseData;
}
